﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OrdenServicioNota.ascx.vb" Inherits="UserControl_OrdenServicioNota" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<link href="../Styles/CommonCSS.css" rel="stylesheet" />

<asp:Button ID="btnGrabarNota" runat="server" style="display:none" />
<asp:ModalPopupExtender ID="popupNota" runat="server" TargetControlID="btnGrabarNota" PopupControlID="panelNota" BackgroundCssClass="transparenciapopup">
</asp:ModalPopupExtender>
<asp:panel ID="panelNota" runat="server" style="display:none">
    <asp:UpdatePanel ID="uppNuevaNota" runat="server">
        <ContentTemplate>
            <div style="background-color:white; border-color:navy; border-width:2px">
                <div class="tittlecell">Nueva Nota</div>
                <table>
                    <tr><td class="textright">Asunto</td>
                        <td class="textleft">
                            <asp:TextBox ID="txbAsunto" runat="server" Width="360px" CssClass="textleft"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="subtittle2" colspan="2">Detalle</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txbDetalle" runat="server" Width="400px" Height="300px" TextMode="MultiLine"></asp:TextBox></td>
                    </tr>
                    <tr><td colspan="2"></td></tr>
                    <tr><td colspan="2">
                        <asp:ImageButton ID="ibtnGrabar" runat="server" ImageUrl="~/Images/texto/btnGrabar.png" />&nbsp;
                        <asp:ImageButton ID="ibtnCancelar" runat="server" ImageUrl="~/Images/texto/btnRegresar.png" />
                        </td></tr>
                </table>
            </div>
         </ContentTemplate>
    </asp:UpdatePanel>
</asp:panel>

<asp:UpdatePanel ID="uppNotas" runat="server">
    <ContentTemplate>

        <div class="tittlecell">Listado de Notas</div>
        <table style="width:500px">
            <tr><td class="textright" style="width:30px" >Orden</td>
                <td class="textleft">
                    <asp:Label ID="LblOrden" runat="server"></asp:Label></td>
                <td class="textright">
                    <asp:ImageButton ID="ibtnNota" runat="server" ImageUrl="~/Images/texto/btnAgregar.png" ToolTip="Agregar Nota" /></td>
            </tr>
            <tr><td class="textcenter" colspan="3">

                <asp:GridView ID="gridNotas" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="CodNota" HeaderText="Codigo" SortExpression="CodNota">
                        </asp:BoundField>
                        <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha">
                        </asp:BoundField>
                        <asp:BoundField DataField="AsuNota" HeaderText="Asunto" SortExpression="AsuNota">
                        <ItemStyle Width="50px" />
                        <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DetalleNota" HeaderText="Detalle" SortExpression="DetalleNota" />
                        <asp:BoundField DataField="Empleado" HeaderText="Registrado" SortExpression="Empleado">
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataTemplate>
                        No existen registros
                    </EmptyDataTemplate>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>

                </td></tr>
        </table>

    </ContentTemplate>
</asp:UpdatePanel>
